﻿using System;
using System.Collections.Generic;
using RentalSystem.Data.EF.Core;

namespace RentalSystem.Data.EF.Dao
{
    public class EFDiscTypesDao : IDiscTypesDao
    {
        #region Queries

        private static readonly string GetQuery;

        #endregion

        private EFManager<DiscTypes> manager;

        public EFDiscTypesDao(RentalDatabaseEntities repository)
        {
            this.manager = new EFManager<DiscTypes>(repository);
        }

        #region IDao1Key

        public DiscTypes Add(DiscTypes entity)
        {
            manager.Database.AddToDiscTypes(entity);
            manager.Save();
            return entity;
        }

        public DiscTypes Get(int id)
        {
            throw new NotImplementedException();
        }

        public void Delete(int id)
        {
            throw new NotImplementedException();
        }

        public void Delete(DiscTypes entity)
        {
            throw new NotImplementedException();
        }

        public void Update(DiscTypes entity, uint fields)
        {
            throw new NotImplementedException();
        }

        public List<DiscTypes> List()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
